package pojo;

import java.util.List;

public class Grade {
    private Integer gradeId;
    private String gradeName;
    private List<Student> students;

    public Grade() {
    }

    public Grade(Integer gradeId, String gradeName, List<Student> students) {
        this.gradeId = gradeId;
        this.gradeName = gradeName;
        this.students = students;
    }

    public Integer getGradeId() {
        return gradeId;
    }

    public void setGradeId(Integer gradeId) {
        this.gradeId = gradeId;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "gradeId=" + gradeId +
                ", gradeName='" + gradeName + '\'' +
                ", students=" + students +
                '}';
    }
}
